<%--
  Created by IntelliJ IDEA.
  User: chen
  Date: 2019/8/21
  Time: 14:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" scope="page" />
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <link rel="stylesheet" href="${ctx}/css/templatemo_style.css"/> <!-- 页面整体布局样式定义 -->
    <link rel="stylesheet" href="${ctx}/css/ddsmoothmenu.css" /> <!-- 菜单样式定义 -->
    <script type="text/javascript" src="${ctx}/js/jquery-1.4.3.min.js"></script>
    <script type="text/javascript">
        var ctx="${pageContext.request.contextPath}";
        function showUserName()
        {
            var name ="${user.username}";
            if(name != "")
            {
                $("#login").html(name);
                $("#exitP").show();
                $("#login").attr("href",ctx+"/user?flag=info&userId=${user.userId}");

            }
            else
            {
                $("#login").html("登陆");
                $("#exitP").hide();
                $("#login").attr("href",ctx+"/user?flag=login");
            }
        }
        $(document).ready(function(){
            showUserName();
        })
    </script>
</head>
<body>
<div id="templatemo_body_wrapper">
    <div id="templatemo_wrapper">

        <!-- header -->
        <div id="templatemo_header">
            <div id="site_title"><h1><a href="#">穿美在线鞋城</a></h1></div>
            <div id="header_right">
                <p>
                    <a href="#" id="login">登录</a>&nbsp;
                    <span id="exitP" style="display: none"><a href="${ctx}/user?flag=logout" id="exit">注销</a></span>
                </p>
            </div>
            <div class="cleaner"></div>
        </div>
        <!-- END of templatemo_header -->

        <!-- menu -->
        <div id="templatemo_menubar">
            <div id="top_nav" class="ddsmoothmenu">
                <ul>
                    <li><a href="${ctx}/home?flag=home">首页</a></li>
                    <li><a href="${ctx}/product?flag=product">产品</a></li>
                    <li><a href="${ctx}/shopcar?tz=gocar">我的购物车</a></li>
                    <li><a href="${ctx}/order?flag=fol">我的订单</a></li>
                </ul>
                <br style="clear: left" />
            </div> <!-- end of ddsmoothmenu -->
        </div><!-- END of templatemo_menubar -->

        <!-- main -->
        <div id="templatemo_main">
            <div id="content" class="float_l" style="margin-left:120px">
                <h2>个人中心</h2>
                <table>
                    <tr>
                        <th colspan="4" align="left">基本信息</th>
                    </tr>
                    <tr>
                        <td><div style="width:20px;"></div></td>
                        <td>用户名：</td>
                        <td><div style="width:20px;"></div></td>
                        <td>${user.username}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>电话：</td>
                        <td></td>
                        <td>${user.mobilePhone}</td>
                    </tr>
                    <tr>
                        <th colspan=4" align="left">收获地址</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>功能未开发</td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                <br>
            </div>
            <div class="cleaner"></div>
        </div>
        <!-- END of templatemo_main -->


        <!-- footer -->
        <div id="templatemo_footer">
            <p>
                <a href="${ctx}/home?flag=home">首页</a> | <a href="${ctx}/product?flag=product">产品</a> | <a href="${ctx}/shopcar?tz=gocar">我的购物车</a> | <a href="${ctx}/order?flag=fol">我的订单</a>
            </p>
            版权所有 (c) 2018 <a href="javascript:void(0);">金桥软件</a>
        </div><!-- END of templatemo_footer -->
    </div>
</div>
</body>
</html>












